package com.pig4cloud.pigx.contract.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.pig4cloud.pigx.common.customize.utils.serializer.BigDecimalToPlainStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * K线数据响应模型 适应 ECharts
 */
@Data
public class ContractKLineEChartsVO {

	/**
	 * 时间
	 */
	private String dateTime;

	/**
	 * 时间戳
	 */
	private Long timeStamp;
	/**
	 * 开盘价
	 */
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal openPrice;
	/**
	 * 收盘价
	 */
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal closePrice;
	/**
	 * 最低价
	 */
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal lowPrice;
	/**
	 * 最高价
	 */
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal highPrice;

	/**
	 * 成交量
	 */
	@JsonSerialize(using = BigDecimalToPlainStringSerializer.class)
	private BigDecimal dealNum;
}
